<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文章列表</title>
</head>
<body>
	<table border="1">
		<tbody>
			<tr>
				<th>文章标题</th>
				<th>作者</th>
			</tr>
			<c:if test="${!empty articles}">
			<c:forEach items="${articles }" var="a">
			<tr>
				<td width="500" align="left">
					<a href="/weixin/article/getArticle.do?id=${a.articleId}">${a.title }</a>
				</td>
				<td>${a.editor }</td>
			</tr>
			</c:forEach>
			</c:if>
			<c:if test="${empty articles }">
			<tr>
				<td colspan="2" align="center">没有记录</td>
			</tr>
			</c:if>
		</tbody>
	</table>
</body>
</html>